from datetime import datetime
from uuid import UUID
from pydantic import BaseModel, Field

class RiskGuaranteeRelationBase(BaseModel):
    """风险与保障关联基础模型"""
    risk_item_id: UUID
    guarantee_item_id: UUID

class RiskGuaranteeRelationCreate(RiskGuaranteeRelationBase):
    """创建风险与保障关联的请求模型"""
    pass

class RiskGuaranteeRelationResponse(RiskGuaranteeRelationBase):
    """风险与保障关联的响应模型"""
    id: UUID
    created_at: datetime

    class Config:
        from_attributes = True 